package com.example.dao;

import com.example.entity.Course;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseDao {
    Course findById(@Param("courseid") Integer courseid);
    List<Course> findAll();
    int insert(Course course);
    int update(Course course);
    int delete(@Param("courseid") Integer courseid);
    List<Course> findCoursesByStartIndexAndNum(int i, int pageNum);
    int findCount();
}